<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>属性选择器</title>
		
		<style>
			/*p[class]{
				color: blue;
				text-align: center;
			}*/
			
			p[class="bold"]{
				color: blue;
				text-align: center;
			}
		</style>
	</head>
	<body>
		<p class="bold">独坐幽篁里,</p>
		<p id='special'>弹琴复长啸。</p>
		<p class="bold">深林人不知，</p>
		<p class="special">明月来相照。</p>
	</body>
</html>
